<template>
  <div class="layui-layout layui-layout-admin">
    <div class="adminnav1">
      <Pagetop></Pagetop>
    </div>
    <div class="adminnav2">
      <Secondnav urlname="shopmall"></Secondnav>
    </div>

    <!-- 主体内容 -->
    <div
      class="layui-body kedou-admin"
      id="LAY_app_body"
      v-show="isshow == 1"
      style="display:none"
    >
      <div class="layui-fluid">
        <div class="layui-card">
          <div class="layui-card-body layui-row">
            <div class="layui-col-xs6">
              <div class="grid-demo">
                <router-link to="/shopmallList">
                  <dl>
                    <dt><img src="./../assets/img05.png" /></dt>
                    <dd>商品管理</dd>
                  </dl>
                </router-link>
              </div>
            </div>
            <!-- <div class="layui-col-xs6">
              <div class="grid-demo">
                <router-link to="/shopsortlist">
                  <dl>
                    <dt><img src="./../assets/img04.png" /></dt>
                    <dd>商品经营类目</dd>
                  </dl>
                </router-link>
              </div>
            </div> -->
            <div class="layui-col-xs6">
              <div class="grid-demo">
                <router-link to="/shopgrouplist">
                  <dl>
                    <dt><img src="./../assets/img14.png" /></dt>
                    <dd>商品分组</dd>
                  </dl>
                </router-link>
              </div>
            </div>
            <!-- <div class="layui-col-xs6" >
              <div class="grid-demo">
                <router-link to="/taocanlist">
                  <dl>
                    <dt><img src="./../assets/img13.png" /></dt>
                    <dd>套餐管理</dd>
                  </dl>
                </router-link>
              </div>
            </div>            -->
            <!-- <div class="layui-col-xs6">
              <div class="grid-demo">
                <router-link to="/shopsetList">
                  <dl>
                    <dt><img src="./../assets/img28.png"></dt>
                    <dd>门店管理</dd>
                  </dl>
                </router-link>
              </div>
            </div> -->
            <!--<div class="layui-col-xs6">			    	
			        <div class="grid-demo">
			      	    <router-link to="/shoporderlist">
			      		<dl>
			      			<dt><img src="./../assets/img09.png"></dt>
			      			<dd>商城订单</dd>
			      		</dl>
			      		</router-link>
			        </div>				   
			    </div>-->
          </div>
        </div>
      </div>
    </div>

    <div
      class="layui-body kedou-admin"
      id="LAY_app_body"
      v-show="isshow == 2"
      style="display:none"
    >
      <div class="layui-fluid">
        <div class="layui-card">
          <div class="layui-card-body layui-row">
            <fieldset class="layui-elem-field layui-field-title">
              <legend>易商城</legend>
            </fieldset>

            <div class="layui-col-xs6">
              <div class="grid-demo">
                <router-link to="/shopmallList">
                  <dl>
                    <dt><img src="./../assets/img05.png" /></dt>
                    <dd>商品管理</dd>
                  </dl>
                </router-link>
              </div>
            </div>
            <div class="layui-col-xs6" v-if="type!=1">
              <div class="grid-demo">
                <router-link to="/shopsortlist">
                  <dl>
                    <dt><img src="./../assets/img04.png" /></dt>
                    <dd>商品经营类目</dd>
                  </dl>
                </router-link>
              </div>
            </div>
            <div class="layui-col-xs6" v-if="type!=1">
              <div class="grid-demo">
                <router-link to="/shopgrouplist">
                  <dl>
                    <dt><img src="./../assets/img14.png" /></dt>
                    <dd>商品分组</dd>
                  </dl>
                </router-link>
              </div>
            </div>            
          </div>
        </div>
      </div>

      <div class="layui-fluid">
        <div class="layui-card">
          <div class="layui-card-body layui-row">
            <fieldset class="layui-elem-field layui-field-title">
              <legend>UC商城</legend>
            </fieldset>

            <div class="layui-col-xs6">
              <div class="grid-demo">
                <router-link to="/ucshopmallList">
                  <dl>
                    <dt><img src="./../assets/img05.png" /></dt>
                    <dd>商品管理</dd>
                  </dl>
                </router-link>
              </div>
            </div>
            <div class="layui-col-xs6" v-if="type!=1">
              <div class="grid-demo">
                <router-link to="/ucshopsortlist">
                  <dl>
                    <dt><img src="./../assets/img04.png" /></dt>
                    <dd>商品经营类目</dd>
                  </dl>
                </router-link>
              </div>
            </div>
            <div class="layui-col-xs6"  v-if="type!=1">
              <div class="grid-demo">
                <router-link to="/ucshopgrouplist">
                  <dl>
                    <dt><img src="./../assets/img14.png" /></dt>
                    <dd>商品分组</dd>
                  </dl>
                </router-link>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="layui-fluid">
        <div class="layui-card">
          <div class="layui-card-body layui-row">
            <fieldset class="layui-elem-field layui-field-title">
              <legend>WUC商城</legend>
            </fieldset>

            <div class="layui-col-xs6">
              <div class="grid-demo">
                <router-link to="/wucshopmallList">
                  <dl>
                    <dt><img src="./../assets/img05.png" /></dt>
                    <dd>商品管理</dd>
                  </dl>
                </router-link>
              </div>
            </div>
            <div class="layui-col-xs6" v-if="type!=1">
              <div class="grid-demo">
                <router-link to="/wucshopsortlist">
                  <dl>
                    <dt><img src="./../assets/img04.png" /></dt>
                    <dd>商品经营类目</dd>
                  </dl>
                </router-link>
              </div>
            </div>
            <div class="layui-col-xs6" v-if="type!=1">
              <div class="grid-demo">
                <router-link to="/wucshopgrouplist">
                  <dl>
                    <dt><img src="./../assets/img14.png" /></dt>
                    <dd>商品分组</dd>
                  </dl>
                </router-link>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
//	import echarts from 'echarts'
import Pagetop from "./common/pagetop.vue";
import Secondnav from "./common/secondnav.vue";
export default {
  name: "shopmall",
  components: { Pagetop, Secondnav },
  data() {
    return {
      title: webtitle,
      isshow: "",
      type:localStorage.getItem("type")
    };
  },
  mounted() {
    this.getdate();
  },
  methods: {
    getdate: function() {    	
      var _this = this;      
      if (_this.title != "物格码") {
        _this.isshow = 1;
      } else {
        _this.isshow = 2;
      }
//       alert(JSON.stringify(_this.title))
    }
  },
  updated: function() {
    this.isShow = true;
    layui.use("form", function() {
      var form = layui.form;
      form.render();
    });
  }
};
</script>
<style scoped></style>
